﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace uz.control
{
    public class TestTreeNode : UzTreeNode
    {
        public static Random rand = new Random();

        public string Text { get; set; }

        public void CreateTestNode(int flg)
        {
            if (flg == 0)
            {
                return;
            }

            int c = rand.Next(2, 5);

            for (int i = 0; i < c; i++)
            {
                TestTreeNode node = new TestTreeNode();
                node.Text = "flg" + flg.ToString() + "-" + i.ToString();
                Nodes.Add(node);
                node.CreateTestNode(flg - 1);
            }
        }
    }
}
